package org.example.authservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.example.authservice.pojo.Application;

/**
 * @author lj20050120
 */
@Mapper
public interface ApplicationMapper extends BaseMapper<Application> {
    /**
     * 根据用户ID删除申请信息
     * @param userId 用户ID
     * @author lj20050120
     */
    @Delete("delete from application where user_id =#{userId} ")
    void remove(Integer userId);
}
